# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

inherit git-2 eutils

DESCRIPTION="Low level runtime library for the D programming language "

HOMEPAGE="http://www.digitalmars.com/d/"
EGIT_REPO_URI="git://github.com/D-Programming-Language/druntime.git"

LICENSE="DMD"
SLOT="2"
KEYWORDS="~x86 ~amd64"
IUSE=""
EAPI="3"

RESTRICT="mirror"

PDEPEND="dev-lang/dmd"

S="${WORKDIR}/${PN}"

src_compile() {
	make -f posix.mak || die "make failed"
}

src_install() {
	dolib.a "${S}/lib/libdruntime-linux32.a" || die "Install failed"
	dodir /usr/include/druntime
	mv "${S}/import"/* "${D}/usr/include/druntime/" || die "Install failed"
}
